#※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
# File Name: gitup.sh
# Author: GID5564
# Description:
# Created Time: 06/11/23-20:38:12
#※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
#! /usr/bin/env bash

cur=$(pwd)
d_path=$1
comm=$2 #aidlux 控制台启动配置
GIT_BRANCH='master'

cd ${d_path}
git add .
git commit -m ${comm}
git push origin ${GIT_BRANCH} --force
if [ "$?" = "0" ];then
    echo -e "\033[42;34m 上传分支${GIT_BRANCH}到gitee成功! \033[0m"
else
    echo -e "\033[41;30m 上传分支${GIT_BRANCH}到gitee失败! \033[0m"
fi
cd ${cur}
    





















